package com.ruoyi.house.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.house.domain.RoomInfoEntity;
import com.ruoyi.house.domain.TbRoomInfoEntity;
import com.ruoyi.house.dto.request.PageTbRoomInfoJzRequestDTO;
import com.ruoyi.house.dto.request.PageTbRoomInfoRequestDTO;
import com.ruoyi.house.dto.response.PageTbRoomInfoResponseDTO;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 
 * @Title: TbRoomInfoMapper
 * @Description: Mapper - 房源
 * @author zhangxurui
 * @date 2018年4月26日 上午10:27:43
 */
@Mapper
public interface TbRoomInfoMapper extends BaseMapper<TbRoomInfoEntity> {
	/**
	 * 
	 * @Description: 分页 -分散式 - 房态
	 * @param pagination
	 * @param condition
	 * @return List<PageTbRoomInfoResponseDTO>
	 */
	List<PageTbRoomInfoResponseDTO> findPageByFs (Pagination pagination, PageTbRoomInfoRequestDTO condition);

	/**
	 * 
	 * @Description: 分页 - 集中式 - 房态
	 * @param param
	 * @return List<PageTbRoomInfoMiniResponseDTO>
	 */
	List<PageTbRoomInfoResponseDTO> findPageByJz(Pagination pagination, PageTbRoomInfoJzRequestDTO param);
	/**
	 * 
	 * @Description: 分页详情 - 集中式 - 房态
	 * @param param
	 * @return List<PageTbRoomInfoResponseDTO>
	 */
	List<PageTbRoomInfoResponseDTO> findPageListDetailByJz (PageTbRoomInfoJzRequestDTO param);
	/**
	 * 
	 * @Description:查询房产状态
	 * @parm @param houseId
	 * @parm @return 参数
	 * @return 返回值说明
	 */
	List<RoomInfoEntity> searchById(String houseId);
	
}
